-- 	跳过字符串开头的空白
--	返回跳过后的字符串
function skipHeadSpace(skipString)
	local headp =1
	while 1 do
		local byte = string.byte(skipString,headp)
--		print(skipString,byte)
		if 32 ~= byte then 
			break
		end
		headp = headp +1
	end
	skipString = string.sub(skipString,headp)
	return skipString
end

--------------------------------------------------------------------------------------------------------------------------------------------------
--	删除obj文件
--	windows的环境下用dir命令查找文件
--OStypestring = os.getenv("OS")
--print( "I am working under",OStypestring)
--SourceTable={}

--	这里tmpfilebuf能用变量代替就好了？？？？ 否则临时文件无法删除！
--local tmpfileBuf = "__tempfile.txt"
--local OSType = string.find(OStypestring,"Windows")
--if OSType then
--	os.execute(string.format('%s%s',"dir > ", tmpfileBuf))
--	io.input(tmpfileBuf)
--	for line in io.lines() do
--		line = skipHeadSpace(line)
--		local objfile = string.find(line,".o")
--		if objfile then
--	取得文件名！！！（另写函数）
--			local filename = 
--			os.remove(filename)
--			print("remove objfile:",line)
--		end
--	end
--end
--------------------------------------------------------------------------------------------------------------------------------------------------
--删除 globalTableCommandTable 里面-o的文件
--------------------------------------------------------------------------------------------------------------------------------------------------
print("-----------globalTableCommandTable start-----------")
for i,v in pairs(globalTableCommandTable) do 
	print(i,v)
end
print("-----------globalTableCommandTable end-----------")


